package com.rxst.msg.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Base Page
 *
 * @author zhangguoshuai
 */
@Data
public class BasePage {

    /**
     * 当前页
     */
    @ApiModelProperty(value = "当前页", example = "0", notes = "当前页")
    int current;
    /**
     * 每页数量
     */
    @ApiModelProperty(value = "每页数量", example = "20", notes = "每页数量")
    int size;

    /**
     * 搜索开始时间
     */
    @ApiModelProperty(value = "搜索开始时间", example = "2021-07-27 15:17:55", notes = "搜索开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startDate;

    /**
     * 搜索结束时间
     */
    @ApiModelProperty(value = "搜索结束时间", example = "2021-07-27 15:17:55", notes = "搜索结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endDate;
}
